package com.cms.work.entity.sys.vo;

import java.util.HashMap;
import java.util.Map;

import com.cms.work.exception.ExceptionCodeEnum;

public class ServiceResultVo {
	
	public enum Status {
		SUCCESS,FAIL;
	}

	private Status status;
	private ExceptionCodeEnum errCodeEnum;
	private Map<String, Object> dataMap = new HashMap<String, Object>();
	
	private ServiceResultVo() {
	}
	
	public static ServiceResultVo getInstance(){
		return new ServiceResultVo();
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

    public ExceptionCodeEnum getErrCodeEnum() {
        return errCodeEnum;
    }

    public void setErrCodeEnum(ExceptionCodeEnum errCodeEnum) {
        this.errCodeEnum = errCodeEnum;
    }

    public Map<String, Object> getDataMap() {
        return dataMap;
    }

    public void setDataMap(Map<String, Object> dataMap) {
        this.dataMap = dataMap;
    }

}
